setCamera

open fun setCamera(@NonNull() cameraOptions: CameraOptions)

Changes the map view by any combination of center, zoom, bearing, and pitch, without an animated transition.The map will retain its current values for any details not passed via the camera options argument.It is not guaranteed that the provided `camera options` will be set, the map may apply constraints resulting in adifferent `camera state`.

Parameters

cameraOptions

The new `camera options` to be set.

open fun setCamera(@NonNull() freeCameraOptions: FreeCameraOptions)

Sets the map view with the free camera options.The `free camera options` provides more direct access to the underlying camera entity.For backwards compatibility the state set using this API must be representable with`camera options` as well. Parameters are clamped to a valid range or discarded as invalidif the conversion to the pitch and bearing presentation is ambiguous. For example orientationcan be invalid if it leads to the camera being upside down or the quaternion has zero length.

Parameters

freeCameraOptions

The `free camera options` to set.